package org.korosoft.rusalad.syncnrun.tools;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * Plain TCP socket factory
 *
 * @author Dmitry Korotkov
 * @since 1.0
 */
public class InsecureSocketFactory implements SocketFactory {
    @Override
    public ServerSocket createServerSocket(int port) throws IOException {
        return new ServerSocket(port);
    }

    @Override
    public Socket createClientSocket(String host, int port) throws IOException {
        return new Socket(host, port);
    }
}
